package com.example.zyh.service.Impl;


import com.example.zyh.mapper.HomeMapper;
import com.example.zyh.pojo.Home;
import com.example.zyh.service.HomeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HomeServiceImpl implements HomeService {
    @Resource
    private HomeMapper homeMapper;

    @Override
    public List<Home> select() {

        return homeMapper.select();
    }

    @Override
    public void add(Home home) {
        homeMapper.add(home);
    }

    @Override
    public void delete(int id) {
        homeMapper.delete(id);
    }

    @Override
    public Home getbyid(Home home) {
        return homeMapper.getbyid(home);
    }

    @Override
    public void update(Home home) {
        homeMapper.update(home);
    }

    @Override
    public List<Home> selectlike(Home home) {
        return homeMapper.selectlike(home);
    }


}
